package com.shire.shire_interface.model.group;

import java.util.ArrayList;
import java.util.List;

public class VGroupInviteHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VGroupInviteHistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInviteIdIsNull() {
            addCriterion("invite_id is null");
            return (Criteria) this;
        }

        public Criteria andInviteIdIsNotNull() {
            addCriterion("invite_id is not null");
            return (Criteria) this;
        }

        public Criteria andInviteIdEqualTo(Integer value) {
            addCriterion("invite_id =", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdNotEqualTo(Integer value) {
            addCriterion("invite_id <>", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdGreaterThan(Integer value) {
            addCriterion("invite_id >", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("invite_id >=", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdLessThan(Integer value) {
            addCriterion("invite_id <", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdLessThanOrEqualTo(Integer value) {
            addCriterion("invite_id <=", value, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdIn(List<Integer> values) {
            addCriterion("invite_id in", values, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdNotIn(List<Integer> values) {
            addCriterion("invite_id not in", values, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdBetween(Integer value1, Integer value2) {
            addCriterion("invite_id between", value1, value2, "inviteId");
            return (Criteria) this;
        }

        public Criteria andInviteIdNotBetween(Integer value1, Integer value2) {
            addCriterion("invite_id not between", value1, value2, "inviteId");
            return (Criteria) this;
        }

        public Criteria andGroupNoIsNull() {
            addCriterion("group_no is null");
            return (Criteria) this;
        }

        public Criteria andGroupNoIsNotNull() {
            addCriterion("group_no is not null");
            return (Criteria) this;
        }

        public Criteria andGroupNoEqualTo(String value) {
            addCriterion("group_no =", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotEqualTo(String value) {
            addCriterion("group_no <>", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoGreaterThan(String value) {
            addCriterion("group_no >", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoGreaterThanOrEqualTo(String value) {
            addCriterion("group_no >=", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoLessThan(String value) {
            addCriterion("group_no <", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoLessThanOrEqualTo(String value) {
            addCriterion("group_no <=", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoLike(String value) {
            addCriterion("group_no like", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotLike(String value) {
            addCriterion("group_no not like", value, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoIn(List<String> values) {
            addCriterion("group_no in", values, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotIn(List<String> values) {
            addCriterion("group_no not in", values, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoBetween(String value1, String value2) {
            addCriterion("group_no between", value1, value2, "groupNo");
            return (Criteria) this;
        }

        public Criteria andGroupNoNotBetween(String value1, String value2) {
            addCriterion("group_no not between", value1, value2, "groupNo");
            return (Criteria) this;
        }

        public Criteria andWxAccountIsNull() {
            addCriterion("wx_account is null");
            return (Criteria) this;
        }

        public Criteria andWxAccountIsNotNull() {
            addCriterion("wx_account is not null");
            return (Criteria) this;
        }

        public Criteria andWxAccountEqualTo(String value) {
            addCriterion("wx_account =", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotEqualTo(String value) {
            addCriterion("wx_account <>", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountGreaterThan(String value) {
            addCriterion("wx_account >", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountGreaterThanOrEqualTo(String value) {
            addCriterion("wx_account >=", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountLessThan(String value) {
            addCriterion("wx_account <", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountLessThanOrEqualTo(String value) {
            addCriterion("wx_account <=", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountLike(String value) {
            addCriterion("wx_account like", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotLike(String value) {
            addCriterion("wx_account not like", value, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountIn(List<String> values) {
            addCriterion("wx_account in", values, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotIn(List<String> values) {
            addCriterion("wx_account not in", values, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountBetween(String value1, String value2) {
            addCriterion("wx_account between", value1, value2, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andWxAccountNotBetween(String value1, String value2) {
            addCriterion("wx_account not between", value1, value2, "wxAccount");
            return (Criteria) this;
        }

        public Criteria andInviterNickIsNull() {
            addCriterion("inviter_nick is null");
            return (Criteria) this;
        }

        public Criteria andInviterNickIsNotNull() {
            addCriterion("inviter_nick is not null");
            return (Criteria) this;
        }

        public Criteria andInviterNickEqualTo(String value) {
            addCriterion("inviter_nick =", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickNotEqualTo(String value) {
            addCriterion("inviter_nick <>", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickGreaterThan(String value) {
            addCriterion("inviter_nick >", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickGreaterThanOrEqualTo(String value) {
            addCriterion("inviter_nick >=", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickLessThan(String value) {
            addCriterion("inviter_nick <", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickLessThanOrEqualTo(String value) {
            addCriterion("inviter_nick <=", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickLike(String value) {
            addCriterion("inviter_nick like", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickNotLike(String value) {
            addCriterion("inviter_nick not like", value, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickIn(List<String> values) {
            addCriterion("inviter_nick in", values, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickNotIn(List<String> values) {
            addCriterion("inviter_nick not in", values, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickBetween(String value1, String value2) {
            addCriterion("inviter_nick between", value1, value2, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterNickNotBetween(String value1, String value2) {
            addCriterion("inviter_nick not between", value1, value2, "inviterNick");
            return (Criteria) this;
        }

        public Criteria andInviterWxidIsNull() {
            addCriterion("inviter_wxid is null");
            return (Criteria) this;
        }

        public Criteria andInviterWxidIsNotNull() {
            addCriterion("inviter_wxid is not null");
            return (Criteria) this;
        }

        public Criteria andInviterWxidEqualTo(String value) {
            addCriterion("inviter_wxid =", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidNotEqualTo(String value) {
            addCriterion("inviter_wxid <>", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidGreaterThan(String value) {
            addCriterion("inviter_wxid >", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidGreaterThanOrEqualTo(String value) {
            addCriterion("inviter_wxid >=", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidLessThan(String value) {
            addCriterion("inviter_wxid <", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidLessThanOrEqualTo(String value) {
            addCriterion("inviter_wxid <=", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidLike(String value) {
            addCriterion("inviter_wxid like", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidNotLike(String value) {
            addCriterion("inviter_wxid not like", value, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidIn(List<String> values) {
            addCriterion("inviter_wxid in", values, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidNotIn(List<String> values) {
            addCriterion("inviter_wxid not in", values, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidBetween(String value1, String value2) {
            addCriterion("inviter_wxid between", value1, value2, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviterWxidNotBetween(String value1, String value2) {
            addCriterion("inviter_wxid not between", value1, value2, "inviterWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeNickIsNull() {
            addCriterion("invitee_nick is null");
            return (Criteria) this;
        }

        public Criteria andInviteeNickIsNotNull() {
            addCriterion("invitee_nick is not null");
            return (Criteria) this;
        }

        public Criteria andInviteeNickEqualTo(String value) {
            addCriterion("invitee_nick =", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickNotEqualTo(String value) {
            addCriterion("invitee_nick <>", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickGreaterThan(String value) {
            addCriterion("invitee_nick >", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickGreaterThanOrEqualTo(String value) {
            addCriterion("invitee_nick >=", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickLessThan(String value) {
            addCriterion("invitee_nick <", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickLessThanOrEqualTo(String value) {
            addCriterion("invitee_nick <=", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickLike(String value) {
            addCriterion("invitee_nick like", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickNotLike(String value) {
            addCriterion("invitee_nick not like", value, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickIn(List<String> values) {
            addCriterion("invitee_nick in", values, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickNotIn(List<String> values) {
            addCriterion("invitee_nick not in", values, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickBetween(String value1, String value2) {
            addCriterion("invitee_nick between", value1, value2, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeNickNotBetween(String value1, String value2) {
            addCriterion("invitee_nick not between", value1, value2, "inviteeNick");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidIsNull() {
            addCriterion("invitee_wxid is null");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidIsNotNull() {
            addCriterion("invitee_wxid is not null");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidEqualTo(String value) {
            addCriterion("invitee_wxid =", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidNotEqualTo(String value) {
            addCriterion("invitee_wxid <>", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidGreaterThan(String value) {
            addCriterion("invitee_wxid >", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidGreaterThanOrEqualTo(String value) {
            addCriterion("invitee_wxid >=", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidLessThan(String value) {
            addCriterion("invitee_wxid <", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidLessThanOrEqualTo(String value) {
            addCriterion("invitee_wxid <=", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidLike(String value) {
            addCriterion("invitee_wxid like", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidNotLike(String value) {
            addCriterion("invitee_wxid not like", value, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidIn(List<String> values) {
            addCriterion("invitee_wxid in", values, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidNotIn(List<String> values) {
            addCriterion("invitee_wxid not in", values, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidBetween(String value1, String value2) {
            addCriterion("invitee_wxid between", value1, value2, "inviteeWxid");
            return (Criteria) this;
        }

        public Criteria andInviteeWxidNotBetween(String value1, String value2) {
            addCriterion("invitee_wxid not between", value1, value2, "inviteeWxid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}